package com.team.est.controller;

/*import com.team.est.client.ModelService;*/
import com.team.est.dto.ModelDto;
import com.team.est.req.ModelReq;
import com.team.est.util.Result;
import com.team.est.utils.Page;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 樊浩
 * @version 1.0
 * @description: TODO
 * @date 2021/3/6 14:16
 */
/*
@RestController
@RequestMapping("/api/model/")
public class ModelController {

 @Autowired(required = false)
 private ModelService modelService;

 @RequestMapping("search")
 public Result<Page<ModelDto>> search(ModelReq modelReq){
  System.out.println("获取编号："+modelReq.getBrandId());
    //modelReq获取前端传递的请求参数
    //调用服务
   Page<ModelDto> modelDtoPage=this.modelService.searchModel(modelReq);
   return new Result<>("0","成功",modelDtoPage);
 }
}
*/
